Skip to content

Conversation

@mumenthalers
Copy link
Contributor

@mumenthalers mumenthalers commented Jan 23, 2026

closes #76

Before Merging:

mumenthalers and others added 20 commits January 21, 2026 17:46
BREAKING CHANGE:
- requires `@shiftcode/logger@^4.0.0`
- ConsoleLogTransport renamed to BrowserConsoleLogTransportService and using its own config `BROWSER_CONSOLE_LOG_TRANSPORT_CONFIG`
- NodeConsoleLogTransport renamed to NodeConsoleLogTransportService and using its own config `NODE_CONSOLE_LOG_TRANSPORT_CONFIG`
…chApi construct

- CloudWatchLogServiceV2
- CloudWatchLogConfigV2
- CloudWatchLogErrorHandlerV2
- CloudWatchLogTransportServiceV2
- withCloudWatchLogTransportV2
BREAKING CHANGE:
- use the new CloudWatchLogV2* classes and functions. requires the new cdk construct CloudWatchApi from @shiftcode/cdk-utils
to prevent potential mutations by reference
@michaelwittwer michaelwittwer self-requested a review February 2, 2026 16:15
}

async writeLogs(logStreamName: string, logs: LogEvent[]): Promise<void> {
// todo: use beaconApi ?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's blocking from doing this now?


private readonly logRequestInfoFn = inject(LOG_REQUEST_INFO_FN, { optional: true })
private readonly config = inject(CLOUD_WATCH_LOG_V2_CONFIG)
private readonly jsonStringifyReplacer = this.config.jsonStringifyReplacer || jsonMapSetStringifyReplacer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| -> ??

@michaelwittwer michaelwittwer self-requested a review February 4, 2026 10:34
michaelwittwer
michaelwittwer previously approved these changes Feb 4, 2026
@michaelwittwer michaelwittwer merged commit 9a127b7 into main Feb 4, 2026
2 checks passed
@michaelwittwer michaelwittwer deleted the #76-logger-n branch February 4, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pimp the loggers

3 participants